//
//  ViewController.m
//  桥接模式
//
//  Created by slience on 2019/11/13.
//  Copyright © 2019 shehuiren. All rights reserved.
//

#import "ViewController.h"
#import "GameViewController.h"
#import "GameEmulator.h"
#import "ClassB1.h"
#import "ClassB2.h"
#import "ClassA.h"
#import "ClassA1.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    GameViewController * gameVc = [[GameViewController alloc]init];
    
    gameVc.emulator = [GameEmulator new];
    
    [gameVc left];
    
    ClassB1 * b1 = [[ClassB1 alloc]init];
    
    ClassA *  a = [[ClassA alloc]init];
    
    a.classB = b1;
    
    [a run];
    
    
    ClassA1 *  a1 = [[ClassA1 alloc]init];
    
    a1.classB = b1;
    
    [a1 run];

}


@end
